class Solution(object):
    def findTheArrayConcVal(self, nums):
        """
        :type nums: List[int]
        :rtype: int
        """

        concVal = 0
        while len(nums) >= 2:
            firstVal = nums.pop(0)
            lastVal = nums.pop(-1)
            lastValLen = 10**len(str(lastVal))
            concVal = concVal + firstVal*lastValLen+lastVal

        if len(nums)>0:
            concVal = concVal + nums.pop()

        return concVal